package com.example.designPattern.singleton;


//线程不安全的 （懒汉，线程不安全）不算一种
public class BadmashUnsafeSingleton {
    private static BadmashUnsafeSingleton instance;
    private BadmashUnsafeSingleton(){
    }
    public static BadmashUnsafeSingleton getInstance(){
        if(instance==null)instance=new BadmashUnsafeSingleton();
        return instance;
    }
}
